﻿using UnityEngine;
using System.Collections;


public class ChatUIHandler : GameUIHandler< ChatUIHandler >
{
	ChatUIComponent chatUI;

	void Awake ()
	{
		mInstance = this;
		
	}
	
	public override void onRelease()
	{
		
	}
	public override void onInit()
	{
		chatUI = uiObject.GetComponentInChildren< ChatUIComponent >();

	}
	public override void onOpen()
	{
		
	}
	public override void onClose()
	{
		
	}

	public void addChat( string name , string chat )
	{
		chatUI.addChat( name , chat );
	}
	
	
	// Use this for initialization
	void Start () 
	{
		Show();
	}
	
	// Update is called once per frame
	void Update () 
	{
		
	}
}
